﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin/Views/Admin.master"
CodeFile="Default.aspx.cs" Inherits="Admin_Default" %>
<%@ Register TagPrefix="tpxLogin" TagName="Login" Src="~/Admin/Views/common/login.ascx" runat="Server" %>
<%@ Register TagPrefix="tpxMenu" TagName="Menu" Src="~/Admin/Views/common/menu.ascx" runat="Server" %>
<%@ Register TagPrefix="tpxUser" TagName="User" Src="~/Admin/Views/module/managerUser.ascx" runat="Server" %>
<%@ Register TagPrefix="tpxHome" TagName="home" Src="~/Admin/Views/module/home.ascx" runat="Server" %>
<%@ Register TagPrefix="tpxProduct" TagName="product" Src="~/Admin/Views/module/Product.ascx" runat="Server" %>
<%@ Register TagPrefix="tpxCategoryList" TagName="CategoryList" Src="~/Admin/Views/module/category_list.ascx" %>
<%@ Register TagPrefix="tpxCategory" TagName="Category" Src="~/Admin/Views/module/category.ascx" runat="Server" %>
<%@ Register TagPrefix="tpxInsertProduct" TagName="insertproduct" Src="~/Admin/Views/module/InsertProduct.ascx" runat="Server" %>
<%@ Register TagPrefix="tpxInsertManu"  TagName="insertManu" Src="~/Admin/Views/module/InsertManuFacture.ascx" runat="Server" %>
<%@ Register TagPrefix="tpxFeedBack"  TagName="feedback" Src="~/Admin/Views/module/ManagerReview.ascx" runat="Server" %>
<asp:Content ID="Content2" ContentPlaceHolderID="menu" runat="Server">
    <tpxMenu:Menu ID="Menu1" runat="Server" />
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="home" runat="Server">
    <div class="warning" ID="warning" runat="Server" ><asp:label id="lblError" runat="server" /></div>
    <% if (Session["username"] == "" || Session["username"] == null)
      { %>
      <tpxLogin:Login ID="tpxLogin" runat="Server" />
    <% }
      else
      { %>
        <tpxHome:home ID="tpxHome" runat="server" Visible=false />
        <tpxUser:User ID="tpxUser" runat="server" Visible=false />
        <tpxProduct:product ID="tpxProduct" runat="server" Visible=false />
        <tpxCategoryList:CategoryList ID="tpxCategoryList" runat="Server" Visible="false" />
        <tpxCategory:Category ID="tpxCategory" runat="Server" Visible="false" />
        <tpxInsertProduct:insertproduct ID="tpxInsertProduct" runat="server" Visible=false />
        <tpxInsertManu:insertManu ID="tpxInsertManu" runat="server" Visible=false />
        <tpxFeedBack:feedback ID="tpxFeedBack" runat="Server" Visible=false />
    <%} %>
</asp:Content>